﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.DtoModel.Common;
using SystemCenterSoa.DtoModel.SystemSettings.QualificationAdministration;
using SystemCenterSoa.IRepository.SystemSettings.QualificationAdministration;
using SystemCenterSoa.PoModel.SystemSettings.QualificationAdministration;

namespace SystemCenterSoa.Service.SystemSettings.QualificationAdministration
{
    public class DictionaryTableService: BaseService
    {
        private IDictionaryTableRepository _dictionaryTableRepository;
        public DictionaryTableService(IDictionaryTableRepository dictionaryTableRepository)
        {
            _dictionaryTableRepository = dictionaryTableRepository;
        }
        public bool DictionaryTableAdd(DictionaryTablePo info)
        {
            return _dictionaryTableRepository.DictionaryTableAdd(info);
        }
        public List<DictionaryTablePo> DictionaryTableByTypeKey(string typeKey)
        {
            return _dictionaryTableRepository.DictionaryTableByTypeKey(typeKey);
        }
        public bool DictionaryTableDelete(int id)
        {
            return _dictionaryTableRepository.DictionaryTableDelete(id);
        }
        public DictionaryTablePo DictionaryTableEdit(int id)
        {
            return _dictionaryTableRepository.DictionaryTableEdit(id);
        }
        public bool DictionaryTableUpdate(DictionaryTablePo info)
        {
            return _dictionaryTableRepository.DictionaryTableUpdate(info);
        }
        public PagerResult<DictionaryTableDto> SearchPage(SearchModel searchModel)
        {
            return _dictionaryTableRepository.SearchPage(searchModel);
        }
        public List<DictionaryTypeTablePo> BindType()
        {
            return _dictionaryTableRepository.BindType();
        }
    }
}
